
import Vue from 'vue'
import App from './App'
import Cache from './utils/cache'
import util from 'utils/util'
import configs from './config/app.js'
import * as Order from './libs/order';
// 引入api接口
import api from '@/http/api.js'
// 引入vuex
import store from '@/store/index.js'
/***
 * 引入uView组件
 */
import uView from '@/uni_modules/uview-ui'

// import customTabbar from "@/wxcomponents/custom-tabbar.vue"
// Vue.component('custom-tabbar', customTabbar)
Vue.use(uView)


/**
 * 注册组件
 */
// main.js

/***
 * 全局注册方法函数
 */
Vue.prototype.$util = util;
Vue.prototype.$config = configs;
Vue.prototype.$Cache = Cache;
Vue.prototype.$eventHub = new Vue();
Vue.prototype.$api = api
Vue.prototype.$store = store
Vue.config.productionTip = false
Vue.prototype.$Order = Order;

import {
	parseQuery
} from "./utils";
import {
	createSSRApp
} from 'vue';
import Auth from './libs/wechat';
import {
	SPREAD
} from './config/cache';
App.mpType = 'app'
const app = new Vue({
	...App,
	store,
	Cache
})
app.$mount()

// export function createApp() {
// 	const app = createSSRApp(App)
// 	return {
// 		app
// 	}
// }
